package com.android.baseconfig.common.helper;

import com.android.baseconfig.base.AppStatus;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2020, by het, Shenzhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 * 描述: AppStatusManager <br>
 * 作者: lei <br>
 * 日期: 2020/3/17 <br>
 */
public class AppStatusManager {
    /**
     * APP状态 初始值被系统回收
     */
    public int appStatus = AppStatus.STATUS_RECYCLE;

    public static AppStatusManager appStatusManager;

    private AppStatusManager() {
    }

    public static AppStatusManager getInstance() {
        if (appStatusManager == null) {
            appStatusManager = new AppStatusManager();
        }
        return appStatusManager;
    }

    /**
     * 得到状态
     *
     * @return
     */
    public int getAppStatus() {
        return appStatus;
    }

    /**
     * 设置状态
     *
     * @param appStatus
     */
    public void setAppStatus(int appStatus) {
        this.appStatus = appStatus;
    }

}
